Skip to content

fix(ci): auto-release 补 pull-requests:write 权限,修复发布后 PR 通知 403 - #21

Merged
herryfish merged 1 commit into
masterfrom
fix/auto-release-notify-permission
Nov 19, 2026
Merged

herryfish merged 1 commit into
masterfrom
fix/auto-release-notify-permission

Conversation

@herryfish

Copy link
Copy Markdown
Owner

背景

PR #20 合入后 auto-release 首次真实运行成功完成声明式发布 v1.2.0(run 44481378467):tag、GitHub Release、版本联动 commit 均正确,但最后的 Notify merged PR 步骤 403(Resource not accessible by integration)——工作流 permissions 只声明了 contents: write,向被合入 PR 发评论还需 pull-requests: write(403 响应头 x-accepted-github-permissions: issues=write; pull_requests=write)。

改动

permissions 增加 pull-requests: write,一行。

影响验证

  • 不触及应用代码;主体发布路径零改动
  • 本 PR 合入将触发 auto-release 推断式路径首跑(version 1.2.0 == 最新 tag v1.2.0,按 fix: 推断 patch → v1.2.1),同时完整验证通知步骤修复

@github-actions

Copy link
Copy Markdown
Contributor

自动代码审核

PR信息

  • 标题: fix(ci): auto-release 补 pull-requests:write 权限,修复发布后 PR 通知 403
  • 描述: ## 背景

PR #20 合入后 auto-release 首次真实运行成功完成声明式发布 v1.2.0(run 44481378467):tag、GitHub Release、版本联动 commit 均正确,但最后的 Notify merged PR 步骤 403(Resource not accessible by integration)——工作流 permissions 只声明了 contents: write,向被合入 PR 发评论还需 pull-requests: write(403 响应头 x-accepted-github-permissions: issues=write; pull_requests=write)。

改动

permissions 增加 pull-requests: write,一行。

影响验证

  • 不触及应用代码;主体发布路径零改动
  • 本 PR 合入将触发 auto-release 推断式路径首跑(version 1.2.0 == 最新 tag v1.2.0,按 fix: 推断 patch → v1.2.1),同时完整验证通知步骤修复

代码分析

破坏性变更检查

  • 破坏性变更: false

建议

  • 检查代码质量
  • 验证测试覆盖
  • 确认文档更新
  • 检查安全性

审核状态

  • 自动分析完成
  • 人工审核

此审核由自动审核工作流生成

@herryfish
herryfish merged commit cb8bfea into master Nov 19, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

✅ Release v1.2.1 已发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant